<template>
  <!-- 分销钱包 -->
  <div class="page-marketing-distribution">
    <el-tabs>
      <el-tab-pane :label="$t('user.walletManagement')">
        <distribution-userWallet-basic />
      </el-tab-pane>
      <el-tab-pane :label="$t('user.walletFlow')">
        <distribution-userWalletBill />
      </el-tab-pane>
      <el-tab-pane
        v-if="paySettlementType!==1"
        :label="$t('user.withdrawalManagement')"
      >
        <distribution-withdrawCash />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script setup>
import DistributionUserWalletBasic from './components/distribution-userWallet-basic.vue'
import DistributionWithdrawCash from './components/distribution-withdrawCash.vue'
import DistributionUserWalletBill from './components/distribution-userWalletBill.vue'

const allinpayStore = useAllinpayStore()
const paySettlementType = computed(() => {
  return allinpayStore.paySettlementType
})
</script>
